import * as ajax from "../../common/ajax";

export const get = id => ajax.get("/admin/member/event/" + id);

export const create = entity => ajax.post("/admin/member/event", entity);

export const deleteItem = id => ajax.pureDelete("/admin/member/event/" + id);

export const update = entity => ajax.put("/admin/member/event", entity);

export const getPageCount = (teamName, eventName, memberName) =>
  ajax.get("/admin/member/event/page/count", {
    teamName: teamName,
    eventName: eventName,
    memberName: memberName
  });

export const getPage = (index, teamName, eventName, memberName) =>
  ajax.get("/admin/member/event/page/" + index, {
    teamName: teamName,
    eventName: eventName,
    memberName: memberName
  });

export const pageSize = 20;
